@import "./common";

.main {
  margin: 50px auto;
  padding: 0 15px;
  text-align: left;
}

.charts-list {
  margin: 0 auto;
}

.chart {
  padding: 10px 10px 0;
  height: 278px;
  width: 282px;
  border: 1px solid #e5e5e5;
  display: inline-block;
  margin: 36px 5px;
  cursor: inherit;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  .chart_wrap {
    height: 262px;
    width: 262px;
    margin: auto;
  }
  .chart_bg {
    width: 262px;
    height: 206px;
    background: center no-repeat;
    background-size: cover;
    display: block;
  }
  .chart_hover {
    color: #fff;
    text-align: center;
    height: 100%;
  }
  .chart_magnifier {
    padding-top: 70px;
  }
  .chart_info {
    height: 56px;
    padding: 0 3px;
  }
  .chart_name, .chart_all{
    font-size: 14px;
    color: #767676;
    line-height: 30px;
    text-align: left;
  }
  .chart_all {
    text-align: center;
    padding-top: 28px;
  }
  .chart_detail {
    font-size: 12px;
    color: #999;
  }
  .chart_icon {
    display: inline-block;
    height: 16px;
    width: 16px;
    background: url("../../static/images/user_time.png") no-repeat;
    background-position: 0 0;
    vertical-align: middle;
    margin-right: 2px;
  }
  .chart_author_icon {
    background-position: 0 0;
  }
  .chart_time_icon {
    background-position: -16px 0;
  }
  .chart_icontxt {
    line-height: 16px;
    vertical-align: middle;
  }
  .chart_magnifier_left {
    opacity: 0;
    width: 50%;
    height: 100%;
    float: left;
    text-align: center;
    line-height: 206px;
    div:nth-child(1) {
      height: 60%;
    }
    div:nth-child(2) {
      height: 28px;
      line-height: 28px;
    }
    &:hover {
      opacity: 1;
      cursor: pointer;
      .chart_hover {
        background: rgba(0, 0, 0, .3);
      }
    }
  }
  .chart_magnifier_right {
    opacity: 0;
    width: 50%;
    height: 100%;
    float: right;
    text-align: center;
    line-height: 206px;
    div:nth-child(1) {
      height: 60%;
    }
    div:nth-child(2) {
      height: 28px;
      line-height: 28px;
    }
    &:hover {
      opacity: 1;
      cursor: pointer;
      .chart_hover {
        background: rgba(0, 0, 0, .3);
      }
    }
  }
  &:hover {
    box-shadow: 0 0 16px rgba(0, 0, 0, .45);
  }
}

@media (min-width: 992px) {
  .charts-list {
    width: 921px;
  }
}
@media (min-width: 1280px) {
  .charts-list {
    width: 1230px;
  }
}
@media (min-width: 1600px) {
  .charts-list {
    width: 1537px;
  }
}

@media only screen and (max-width: 767.99px) {
  #charts-list-ul {
    text-align: center;
  }
}
